<div class="container" id="thu_vien_anh">
	<div class="row">
		<div class="span7">
			<h1><%= t 'upload_anh_moi' %></h1>
		</div>
	</div>
	<div class="row">
		<div clsas="span12">
			<% flash.each do |key, msg| %>
			<%= content_tag :div, msg, :class => ["alert" , "alert-#{key}"], :id => "notice_#{key}" %>
			<% end %>
			<%= form_tag (url_for :action=>"upload"), { :multipart => true } do %>
			<p>
				<%= file_field_tag 'upload[file]' %>
			</p>
			<p>
				<%= submit_tag "Upload", :class=>"btn btn-primary"%>
			</p>
			<% end %>
		</div>
	</div>
	<div class="row">
		<div class="span12 text-center">
			<% if @anh.present? %>
			<% host = "#{request.protocol}#{request.host_with_port}/"%>
			<p class="control-group success">
				<strong>URL:</strong> <input type="text" class="input-xxlarge" value="<%= "#{host}#{@anh[7, @anh.length]}" %>">
			</p>
			<img src="<%= "#{host}#{@anh[7, @anh.length]}"%>" /> <br />
			<% end %>
		</div>
	</div>
</div>
